import {renderComponent} from '../ReactDOM/reactFun'
class Component{
    constructor(props={}){
        this.props=props
        this.state={}
    }
    setState(statevalue){
        //对象copy
        Object.assign(this.state,statevalue)
        //渲染组件
        renderComponent(this)
    }
}
export default Component